import { ref } from 'vue';
import { defineStore } from 'pinia';

const useDialogStore = defineStore("dialog", () => {
    const display = ref(false);
    const custId = ref("");
    const openDialog = id => {
        custId.value = id + "";
        display.value = true;
    };
    return {
        display,
        custId,
        openDialog
    }
});

export default useDialogStore;